package second;

public class PhoneTest {
    public static void main(String[] args) {
        OldPhone oldPhone = new OldPhone();
        oldPhone.setName("旧手机");
        oldPhone.setNumber("11111111111");
        oldPhone.sendMsg();
        oldPhone.call();

        NewPhone newPhone = new NewPhone();
        newPhone.setName("新手机");
        newPhone.setNumber("22222222222");
        newPhone.sendMsg();
        newPhone.call();
        newPhone.playGame();
    }
}
